package com.itheima.d1_extends.demo04;

public class Fu {
    public void show() {
        System.out.println("父类的show方法");
    }

    public Fu getInstance() {
        System.out.println("父类的getInstance方法");
        return new Fu();
    }

    protected void protectedMethod() {
        System.out.println("父类的protected级别方法");
    }

    //缺省权限也叫包访问权限，特点：没有任何关键字
    void defaultMethod() {
        System.out.println("父类的缺省级别方法");
    }

    private void privateMthod() {
        System.out.println("父类的private级别方法");
    }
}
